package org.cos.generation.util.predict;

public class EqualPredictSet implements PredictSet {

	private Object value;
	
	public EqualPredictSet(Object value) {
		this.value = value;
	}
	
	public Object getValue() {
		return value;
	}

	public SetType getType() {
		return SetType.EQUAL;
	}

	public PredictSet getSet() {
		return this;
	}
	public boolean isAll() {
		if (value != null) return false;
		else return true;
	}
	
	public String toString() {
		return value.toString();
	}


	public boolean contains(Object o) {
		if (value.equals(o)) return true;
		return false;
	}
	
}
